import store from "@/store";
const equipment = {
    // 分为2层，一级的菜单名称和二级的权限列表
    work: ""
};
const dataComponent =
    // 查询条件dataModel
    [{
            type: "select",
            label: "审批类别",
            model: "billType",
            prop: "billType",
            onchange: e => {
                console.log(store, "store");
                store.dispatch("system/updateBillType", e);
                console.log(1);
            },
            value: 1,
            option: [{
                    value: 1,
                    label: "设备台账"
                },
                {
                    value: 3,
                    label: "点检计划"
                },
                {
                    value: 4,
                    label: "巡检计划"
                },
                {
                    value: 5,
                    label: "保养计划"
                },
                {
                    value: 2,
                    label: "检定计划"
                },
                {
                    value: 6,
                    label: "设备维修"
                },
                {
                    value: 7,
                    label: "设备维护"
                }
            ],
            span: 8
        },
        {
            type: "selectTree",
            label: "审批范围",
            model: "organIds",
            prop: "organIds",
            checkStrictly: true,
            props: {
                // 配置项（必选）
                value: "id",
                label: "name",
                children: "children"
                    // disabled:true
            },
            value: [],
            clearable: true,
            according: true,
            getValue: e => {
                console.log(store, "store");
                console.log(e);
            },
            span: 8
        }
    ];
const tableColumn = [{
        key: "id",
        event: null,
        label: "数据id"
    },
    {
        key: "personId",
        event: null,
        label: "员工编码"
    },
    {
        key: "personName",
        event: null,
        label: "员工姓名"
    }
];
// 查询相关字段
const dataModel = {
    page: 1,
    limit: 20,
    importance: 1,
    title: "1",
    type: 1,
    sort: "+id",
    date: 1,
    startDate: 1,
    endDate: 1
};

const data = {
    equipment: equipment,
    tableColumn: tableColumn,
    dataComponent: dataComponent,
    dataModel: dataModel
};
export default data;